//
//  XPScoreLevelItem.h
//  ProgressDemo
//
//  Created by nhope on 2017/2/10.
//  Copyright © 2017年 xiaopin. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 等级判断:
 1、minValue等于0的情况
 minValue ≤ level ≤ maxValue
 2、minValue不为0的情况
 minValue ＜ level ≤ maxValue
 */

@interface XPScoreLevelItem : NSObject

/// 等级最小值
@property (nonatomic, assign) float minValue;
/// 等级最大值
@property (nonatomic, assign) float maxValue;
/// 等级名称
@property (nonatomic, copy) NSString *levelName;
/// 等级文字颜色
@property (nonatomic, strong) UIColor *textColor;

+ (instancetype)itemWithLevelName:(NSString *)name textColor:(UIColor *)color minValue:(float)minValue maxValue:(float)maxValue;

@end
